﻿<%@page contentType="text/vnd.wap.wml; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="common.*"%>
<%@ page import="wapbean.*"%>  
    <%
     String purl = (String) session.getAttribute("p");
   //  System.out.println("purl######=" + purl);
     ContentFactory Fac = new ContentFactory(); 
      Vector vc = Fac.getMobilemodelBean();    
      boolean find = false;
      String ProviderID=null;
	if (vc != null && !vc.isEmpty()) {
		int n = vc.size();
	//	System.out.println("nnnnnn=" + n);
		//循环获取url
	//	String prid=null;
		for (int j = 1; j < n; j++) {
			MobilemodelBean ab = (MobilemodelBean) vc.elementAt(j);
			String description = ab.getDescription();
		//	String prid = ab.getProviderID();
		//	System.out.println("description=" + description);
			String[] p = description.split(";");
		//	System.out.println("pppppp=" + p);
			int k;
			//判断当前机型是否包含访问中带的机型----------------begin
				for ( k = 0; k < p.length; k++) { 
					if (purl.equals(p[k])) { 
						find = true;
		//	System.out.println("获取到url=" + purl);
					  break;   
					}
				}
			//判断当前机型是否包含访问中带的机型----------------end
			if(find){
				ab=Fac.getmobilemodelDescription(purl); 
				 ProviderID=ab.getProviderID();
			//	System.out.println("ProviderIDggggggg=" + ProviderID);
			   
			}  

	   }
	   }  //for 循环结束
	    ProviderBean pb=Fac.getProvider(ProviderID);
     %>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org//DTD//wml_1.1.xml">   
<wml>
<card id="card1" title="乐游-<%=pb.getName()%>专区">     

<p align="left">

<img src="/game3.0/img/logo.png" alt=""/><br />
  网站升级中......<br /> 
</p>
</card>
</wml>